import request from '@/utils/request'
import request1 from "@/utils/request1";


//统计总人数
export function totalUserCount(query) {
  return request({
    url: '/insurance/index/totalUserCount',
    method: 'get',
    params: query
  })
}
//统计当月新增人数
export function addUserGroup(query) {
  return request1({
    url: '/totalusercount/addUserGroup',
    method: 'get',
    params: query
  })
}
export function totalUserCount1(query) {
  return request1({
    // url: '/insurance/index/totalUserCount',
    url: '/totalusercount/totalusercount',
    method: 'post',
    params: query
  })
}

//统计4类工种数量
export function totalIndustryCount(query) {
  return request({
    url: '/insurance/index/totalIndustryCount',
    method: 'get',
    params: query
  })
}
//统计保费
export function totalInsurePrice(query) {
  return request({
    url: '/insurance/index/totalInsurePrice',
    method: 'get',
    params: query
  })
}
//保费统计
export function totalInsurePrice1(query) {
  return request1({
    url: '/Totalusercount/totallnsurePrice',
    method: 'get',
    params: query
  })
}
//出现次数，预计金额，已决金额（月，季，年）
export function totalRisksCount(query) {
  return request({
    url: '/insurance/index/totalRisksCount',
    method: 'get',
    params: query
  })
}
export function totalRisksCount1(query) {
  return request1({
    url: '/Totalusercount/totalRisksCount',
    method: 'get',
    params: query
  })
}
//可看保司
export function get_safety_mechanism(query) {
  return request1({
    url: '/Sysuser/get_safety_mechanism',
    method: 'post',
    params: query
  })
}





